package com.example.testrest;

import java.io.IOException;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

import restlet.interfaces.CarrierResourceI;
import beans.CarrierBean;

public class TestCarrier {
	public static void main(String[] args) throws ResourceException,
			IOException {

		String ID = 11 + "";

		ClientResource cr = new ClientResource(
				"http://localhost:8080/rest/carrier/" + ID);
		CarrierResourceI placesResourceI = cr.wrap(CarrierResourceI.class);
		CarrierBean carrier = placesResourceI.getCarrierByID();

		System.out.println(carrier);

	}
}
